#pragma once
#include "vector3.h"

namespace krryn{
namespace math{
	class plane{
	public:
		math::vector3f m_Normal;
		float m_Distance;

		bool point_in_plane(math::vector3f a_Point) const{
			return m_Normal.dot(a_Point) + m_Distance > 0;
		}

		void normalize(){
			float l_Magnitude = m_Normal.length();
			m_Normal /= l_Magnitude;
			m_Distance /= l_Magnitude;
		}
	};
}
}
